bitkeeper revision 1.1159.95.1 (415a82eauG6CiQHX1_qZWxeq5kcwrg)
authorcl349@freefall.cl.cam.ac.uk <cl349@freefall.cl.cam.ac.uk>
Wed, 29 Sep 2004 09:39:54 +0000 (09:39 +0000)
committercl349@freefall.cl.cam.ac.uk <cl349@freefall.cl.cam.ac.uk>
Wed, 29 Sep 2004 09:39:54 +0000 (09:39 +0000)
Fix small memory leak in block device probing code.

linux-2.6.8.1-xen-sparse/drivers/xen/blkfront/vbd.c

index e7c5453c4afcaca39d0ea5619bdfe60aaa1a0c12..4e758f78261c14b1f9e8dd17568d8e87e28545cc 100644 (file)
@@ -101,6 +101,8 @@ static int xlvbd_get_vbd_info(vdisk_t *disk_info)
          nr = MAX_VBDS;
     memcpy(disk_info, buf, nr * sizeof(vdisk_t));
 
+    free_page((unsigned long)buf);
+
     return nr;
 }